﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using PRO.Common;
using PRO.Config;
using PRO.User;

namespace web.Member
{
    public partial class logout : PageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Utils.WriteCookie("UserInfo".DEC_Encode(BaseConfigs.DEC_KEY), string.Empty, 0);
            Utils.WriteCookie("CheckCode".DEC_Encode(BaseConfigs.DEC_KEY), string.Empty, 0);
            Utils.WriteCookie("ShopCart".DEC_Encode(BaseConfigs.DEC_KEY), string.Empty, 0);
            if (CVGRequest.GetQueryString("url").IsNullOrWhiteSpace())
                Response.Redirect("/login");
            else
                Response.Redirect(CVGRequest.GetQueryString("url"));
        }
    }
}